
class Example<T>{
    private T example;

    public T getExample() {
        return example;
    }

    public void setExample(T example) {
        this.example = example;
    }
}

public class Test2 {
    public static void main(String[] args) {
       Example<Integer> example1 = new Example<>();
       Example<String> example2 = new Example<>();
        System.out.println(example1);
        System.out.println(example2);
    }

}
